let arrState = {
  state: {
    arr: [10]
  },
  actions: {
    arrpush: (newState: { arr: Array<number> }, action: { val: number }) => {
      newState.arr.push(action.val);
    },
  },
};

let actionNames: any = {};

for (let key in arrState.actions) {
  actionNames[key] = key;
};

export default {
  ...arrState,
  actionNames
};